﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace qkview.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index(string returnUrl)
        {
            if (User.Identity.IsAuthenticated) {
                return RedirectToRoute("Board", new { username = User.Identity.Name });
            }
            ViewBag.ReturnUrl = returnUrl;
            return View();
        }        
    }
}